<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><link rel="stylesheet" type="text/css" href="style.css" /><script type="text/javascript" src="highlight.js"></script></head><body><pre><span class="hs-pragma">{-# LANGUAGE CPP, MagicHash #-}</span><span class="hs-cpp">
#if __GLASGOW_HASKELL__ &gt;= 703
</span><span class="hs-pragma">{-# LANGUAGE Unsafe #-}</span><span class="hs-cpp">
#endif
</span><span class="hs-comment">-- |</span><span>
</span><span id="line-6"></span><span class="hs-comment">-- Copyright   : (c) 2010 Simon Meier</span><span>
</span><span id="line-7"></span><span class="hs-comment">--</span><span>
</span><span id="line-8"></span><span class="hs-comment">--               Original serialization code from 'Data.Binary.Builder':</span><span>
</span><span id="line-9"></span><span class="hs-comment">--               (c) Lennart Kolmodin, Ross Patterson</span><span>
</span><span id="line-10"></span><span class="hs-comment">--</span><span>
</span><span id="line-11"></span><span class="hs-comment">-- License     : BSD3-style (see LICENSE)</span><span>
</span><span id="line-12"></span><span class="hs-comment">--</span><span>
</span><span id="line-13"></span><span class="hs-comment">-- Maintainer  : Simon Meier &lt;iridcode@gmail.com&gt;</span><span>
</span><span id="line-14"></span><span class="hs-comment">-- Portability : GHC</span><span>
</span><span id="line-15"></span><span class="hs-comment">--</span><span>
</span><span id="line-16"></span><span class="hs-comment">-- Utilty module defining unchecked shifts.</span><span>
</span><span id="line-17"></span><span class="hs-comment">--</span><span>
</span><span id="line-18"></span><span class="hs-comment">-- These functions are undefined when the amount being shifted by is</span><span>
</span><span id="line-19"></span><span class="hs-comment">-- greater than the size in bits of a machine Int#.-</span><span>
</span><span id="line-20"></span><span class="hs-comment">--</span><span class="hs-cpp">
#if !defined(__HADDOCK__)
</span><span class="hs-cpp">#include &quot;MachDeps.h&quot;
</span><span class="hs-cpp">#endif
</span><span>
</span><span id="line-25"></span><span class="hs-keyword">module</span><span> </span><span class="hs-identifier">Data.ByteString.Builder.Prim.Internal.UncheckedShifts</span><span> </span><span class="hs-special">(</span><span>
</span><span id="line-26"></span><span>    </span><span class="annot"><a href="Data.ByteString.Builder.Prim.Internal.UncheckedShifts.html#shiftr_w16"><span class="hs-identifier">shiftr_w16</span></a></span><span>
</span><span id="line-27"></span><span>  </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Data.ByteString.Builder.Prim.Internal.UncheckedShifts.html#shiftr_w32"><span class="hs-identifier">shiftr_w32</span></a></span><span>
</span><span id="line-28"></span><span>  </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Data.ByteString.Builder.Prim.Internal.UncheckedShifts.html#shiftr_w64"><span class="hs-identifier">shiftr_w64</span></a></span><span>
</span><span id="line-29"></span><span>  </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Data.ByteString.Builder.Prim.Internal.UncheckedShifts.html#shiftr_w"><span class="hs-identifier">shiftr_w</span></a></span><span>
</span><span id="line-30"></span><span>
</span><span id="line-31"></span><span>  </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Data.ByteString.Builder.Prim.Internal.UncheckedShifts.html#caseWordSize_32_64"><span class="hs-identifier">caseWordSize_32_64</span></a></span><span>
</span><span id="line-32"></span><span>  </span><span class="hs-special">)</span><span> </span><span class="hs-keyword">where</span><span class="hs-cpp">


#if !defined(__HADDOCK__)
</span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#"><span class="hs-identifier">GHC.Base</span></a></span><span>
</span><span id="line-37"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../base/src/GHC.Word.html#"><span class="hs-identifier">GHC.Word</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../base/src/GHC.Word.html#Word32"><span class="hs-identifier">Word32</span></a></span><span class="hs-special">(</span><span class="hs-glyph">..</span><span class="hs-special">)</span><span class="hs-special">,</span><span class="annot"><a href="../../base/src/GHC.Word.html#Word16"><span class="hs-identifier">Word16</span></a></span><span class="hs-special">(</span><span class="hs-glyph">..</span><span class="hs-special">)</span><span class="hs-special">,</span><span class="annot"><a href="../../base/src/GHC.Word.html#Word64"><span class="hs-identifier">Word64</span></a></span><span class="hs-special">(</span><span class="hs-glyph">..</span><span class="hs-special">)</span><span class="hs-special">)</span><span class="hs-cpp">

#if WORD_SIZE_IN_BITS &lt; 64 &amp;&amp; __GLASGOW_HASKELL__ &gt;= 608
</span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">GHC.Word</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">uncheckedShiftRL64#</span><span class="hs-special">)</span><span class="hs-cpp">
#endif
</span><span class="hs-cpp">#else
</span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">Data.Word</span><span class="hs-cpp">
#endif
</span><span>
</span><span id="line-46"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../base/src/Foreign.html#"><span class="hs-identifier">Foreign</span></a></span><span>
</span><span id="line-47"></span><span>
</span><span id="line-48"></span><span>
</span><span id="line-49"></span><span class="hs-comment">------------------------------------------------------------------------</span><span>
</span><span id="line-50"></span><span class="hs-comment">-- Unchecked shifts</span><span>
</span><span id="line-51"></span><span>
</span><span id="line-52"></span><span class="hs-comment">-- | Right-shift of a 'Word16'.</span><span>
</span><span id="line-53"></span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="annot"><a href="Data.ByteString.Builder.Prim.Internal.UncheckedShifts.html#shiftr_w16"><span class="hs-pragma hs-type">shiftr_w16</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-54"></span><span class="annot"><a href="Data.ByteString.Builder.Prim.Internal.UncheckedShifts.html#shiftr_w16"><span class="hs-identifier hs-type">shiftr_w16</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../base/src/GHC.Word.html#Word16"><span class="hs-identifier hs-type">Word16</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-identifier hs-type">Int</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Word.html#Word16"><span class="hs-identifier hs-type">Word16</span></a></span><span>
</span><span id="line-55"></span><span>
</span><span id="line-56"></span><span class="hs-comment">-- | Right-shift of a 'Word32'.</span><span>
</span><span id="line-57"></span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="annot"><a href="Data.ByteString.Builder.Prim.Internal.UncheckedShifts.html#shiftr_w32"><span class="hs-pragma hs-type">shiftr_w32</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-58"></span><span class="annot"><a href="Data.ByteString.Builder.Prim.Internal.UncheckedShifts.html#shiftr_w32"><span class="hs-identifier hs-type">shiftr_w32</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../base/src/GHC.Word.html#Word32"><span class="hs-identifier hs-type">Word32</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-identifier hs-type">Int</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Word.html#Word32"><span class="hs-identifier hs-type">Word32</span></a></span><span>
</span><span id="line-59"></span><span>
</span><span id="line-60"></span><span class="hs-comment">-- | Right-shift of a 'Word64'.</span><span>
</span><span id="line-61"></span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="annot"><a href="Data.ByteString.Builder.Prim.Internal.UncheckedShifts.html#shiftr_w64"><span class="hs-pragma hs-type">shiftr_w64</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-62"></span><span class="annot"><a href="Data.ByteString.Builder.Prim.Internal.UncheckedShifts.html#shiftr_w64"><span class="hs-identifier hs-type">shiftr_w64</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../base/src/GHC.Word.html#Word64"><span class="hs-identifier hs-type">Word64</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-identifier hs-type">Int</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Word.html#Word64"><span class="hs-identifier hs-type">Word64</span></a></span><span>
</span><span id="line-63"></span><span>
</span><span id="line-64"></span><span class="hs-comment">-- | Right-shift of a 'Word'.</span><span>
</span><span id="line-65"></span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="annot"><a href="Data.ByteString.Builder.Prim.Internal.UncheckedShifts.html#shiftr_w"><span class="hs-pragma hs-type">shiftr_w</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-66"></span><span class="annot"><a href="Data.ByteString.Builder.Prim.Internal.UncheckedShifts.html#shiftr_w"><span class="hs-identifier hs-type">shiftr_w</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Word"><span class="hs-identifier hs-type">Word</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Int"><span class="hs-identifier hs-type">Int</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Word"><span class="hs-identifier hs-type">Word</span></a></span><span class="hs-cpp">
#if WORD_SIZE_IN_BITS &lt; 64
</span><span class="hs-identifier">shiftr_w</span><span> </span><span class="hs-identifier">w</span><span> </span><span class="hs-identifier">s</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">fromIntegral</span><span> </span><span class="hs-operator">$</span><span> </span><span class="hs-special">(</span><span class="hs-special">`</span><span class="hs-identifier">shiftr_w32</span><span class="hs-special">`</span><span> </span><span class="hs-identifier">s</span><span class="hs-special">)</span><span> </span><span class="hs-operator">$</span><span> </span><span class="hs-identifier">fromIntegral</span><span> </span><span class="hs-identifier">w</span><span class="hs-cpp">
#else
</span><span id="shiftr_w"><span class="annot"><span class="annottext">shiftr_w :: Word -&gt; Int -&gt; Word
</span><a href="Data.ByteString.Builder.Prim.Internal.UncheckedShifts.html#shiftr_w"><span class="hs-identifier hs-var hs-var">shiftr_w</span></a></span></span><span> </span><span id="local-6989586621679070744"><span class="annot"><span class="annottext">Word
</span><a href="#local-6989586621679070744"><span class="hs-identifier hs-var">w</span></a></span></span><span> </span><span id="local-6989586621679070743"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679070743"><span class="hs-identifier hs-var">s</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word64 -&gt; Word
forall a b. (Integral a, Num b) =&gt; a -&gt; b
</span><a href="../../base/src/GHC.Real.html#fromIntegral"><span class="hs-identifier hs-var">fromIntegral</span></a></span><span> </span><span class="annot"><span class="annottext">(Word64 -&gt; Word) -&gt; Word64 -&gt; Word
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word64 -&gt; Int -&gt; Word64
</span><a href="Data.ByteString.Builder.Prim.Internal.UncheckedShifts.html#shiftr_w64"><span class="hs-operator hs-var">`shiftr_w64`</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679070743"><span class="hs-identifier hs-var">s</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">(Word64 -&gt; Word64) -&gt; Word64 -&gt; Word64
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">Word -&gt; Word64
forall a b. (Integral a, Num b) =&gt; a -&gt; b
</span><a href="../../base/src/GHC.Real.html#fromIntegral"><span class="hs-identifier hs-var">fromIntegral</span></a></span><span> </span><span class="annot"><span class="annottext">Word
</span><a href="#local-6989586621679070744"><span class="hs-identifier hs-var">w</span></a></span><span class="hs-cpp">
#endif
</span><span class="hs-cpp">
#if !defined(__HADDOCK__)
</span><span id="shiftr_w16"><span class="annot"><span class="annottext">shiftr_w16 :: Word16 -&gt; Int -&gt; Word16
</span><a href="Data.ByteString.Builder.Prim.Internal.UncheckedShifts.html#shiftr_w16"><span class="hs-identifier hs-var hs-var">shiftr_w16</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../base/src/GHC.Word.html#W16%23"><span class="hs-identifier hs-type">W16#</span></a></span><span> </span><span id="local-6989586621679070741"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679070741"><span class="hs-identifier hs-var">w</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#I%23"><span class="hs-identifier hs-type">I#</span></a></span><span> </span><span id="local-6989586621679070740"><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679070740"><span class="hs-identifier hs-var">i</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word16
</span><a href="../../base/src/GHC.Word.html#W16%23"><span class="hs-identifier hs-var">W16#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679070741"><span class="hs-identifier hs-var">w</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Int# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#uncheckedShiftRL%23"><span class="hs-operator hs-var">`uncheckedShiftRL#`</span></a></span><span>   </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679070740"><span class="hs-identifier hs-var">i</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-75"></span><span id="shiftr_w32"><span class="annot"><span class="annottext">shiftr_w32 :: Word32 -&gt; Int -&gt; Word32
</span><a href="Data.ByteString.Builder.Prim.Internal.UncheckedShifts.html#shiftr_w32"><span class="hs-identifier hs-var hs-var">shiftr_w32</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../base/src/GHC.Word.html#W32%23"><span class="hs-identifier hs-type">W32#</span></a></span><span> </span><span id="local-6989586621679070738"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679070738"><span class="hs-identifier hs-var">w</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#I%23"><span class="hs-identifier hs-type">I#</span></a></span><span> </span><span id="local-6989586621679070737"><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679070737"><span class="hs-identifier hs-var">i</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word32
</span><a href="../../base/src/GHC.Word.html#W32%23"><span class="hs-identifier hs-var">W32#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679070738"><span class="hs-identifier hs-var">w</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Int# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#uncheckedShiftRL%23"><span class="hs-operator hs-var">`uncheckedShiftRL#`</span></a></span><span>   </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679070737"><span class="hs-identifier hs-var">i</span></a></span><span class="hs-special">)</span><span class="hs-cpp">

#if WORD_SIZE_IN_BITS &lt; 64
</span><span class="hs-identifier">shiftr_w64</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">W64#</span><span> </span><span class="hs-identifier">w</span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">I#</span><span> </span><span class="hs-identifier">i</span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">W64#</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">w</span><span> </span><span class="hs-special">`</span><span class="hs-identifier">uncheckedShiftRL64#</span><span class="hs-special">`</span><span> </span><span class="hs-identifier">i</span><span class="hs-special">)</span><span class="hs-cpp">
#else
</span><span id="shiftr_w64"><span class="annot"><span class="annottext">shiftr_w64 :: Word64 -&gt; Int -&gt; Word64
</span><a href="Data.ByteString.Builder.Prim.Internal.UncheckedShifts.html#shiftr_w64"><span class="hs-identifier hs-var hs-var">shiftr_w64</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../base/src/GHC.Word.html#W64%23"><span class="hs-identifier hs-type">W64#</span></a></span><span> </span><span id="local-6989586621679070735"><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679070735"><span class="hs-identifier hs-var">w</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#I%23"><span class="hs-identifier hs-type">I#</span></a></span><span> </span><span id="local-6989586621679070734"><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679070734"><span class="hs-identifier hs-var">i</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Word64
</span><a href="../../base/src/GHC.Word.html#W64%23"><span class="hs-identifier hs-var">W64#</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word#
</span><a href="#local-6989586621679070735"><span class="hs-identifier hs-var">w</span></a></span><span> </span><span class="annot"><span class="annottext">Word# -&gt; Int# -&gt; Word#
</span><a href="../../ghc-prim/src/GHC.Prim.html#uncheckedShiftRL%23"><span class="hs-operator hs-var">`uncheckedShiftRL#`</span></a></span><span> </span><span class="annot"><span class="annottext">Int#
</span><a href="#local-6989586621679070734"><span class="hs-identifier hs-var">i</span></a></span><span class="hs-special">)</span><span class="hs-cpp">
#endif
</span><span class="hs-cpp">
#else
</span><span class="hs-identifier">shiftr_w16</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">shiftR</span><span>
</span><span id="line-85"></span><span class="hs-identifier">shiftr_w32</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">shiftR</span><span>
</span><span id="line-86"></span><span class="hs-identifier">shiftr_w64</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">shiftR</span><span class="hs-cpp">
#endif
</span><span>
</span><span id="line-89"></span><span>
</span><span id="line-90"></span><span class="hs-comment">-- | Select an implementation depending on the bit-size of 'Word's.</span><span>
</span><span id="line-91"></span><span class="hs-comment">-- Currently, it produces a runtime failure if the bitsize is different.</span><span>
</span><span id="line-92"></span><span class="hs-comment">-- This is detected by the testsuite.</span><span>
</span><span id="line-93"></span><span class="hs-pragma">{-# INLINE</span><span> </span><span class="annot"><a href="Data.ByteString.Builder.Prim.Internal.UncheckedShifts.html#caseWordSize_32_64"><span class="hs-pragma hs-type">caseWordSize_32_64</span></a></span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-94"></span><span id="local-6989586621679070768"><span class="annot"><a href="Data.ByteString.Builder.Prim.Internal.UncheckedShifts.html#caseWordSize_32_64"><span class="hs-identifier hs-type">caseWordSize_32_64</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="#local-6989586621679070768"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-comment">-- Value to use for 32-bit 'Word's</span><span>
</span><span id="line-95"></span><span>                   </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="#local-6989586621679070768"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-comment">-- Value to use for 64-bit 'Word's</span><span>
</span><span id="line-96"></span><span>                   </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="#local-6989586621679070768"><span class="hs-identifier hs-type">a</span></a></span></span><span>
</span><span id="line-97"></span><span id="caseWordSize_32_64"><span class="annot"><span class="annottext">caseWordSize_32_64 :: forall a. a -&gt; a -&gt; a
</span><a href="Data.ByteString.Builder.Prim.Internal.UncheckedShifts.html#caseWordSize_32_64"><span class="hs-identifier hs-var hs-var">caseWordSize_32_64</span></a></span></span><span> </span><span id="local-6989586621679070719"><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621679070719"><span class="hs-identifier hs-var">f32</span></a></span></span><span> </span><span id="local-6989586621679070718"><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621679070718"><span class="hs-identifier hs-var">f64</span></a></span></span><span> </span><span class="hs-glyph">=</span><span class="hs-cpp">
#if MIN_VERSION_base(4,7,0)
</span><span>  </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">Word -&gt; Int
forall b. FiniteBits b =&gt; b -&gt; Int
</span><a href="../../base/src/Data.Bits.html#finiteBitSize"><span class="hs-identifier hs-var">finiteBitSize</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word
forall a. HasCallStack =&gt; a
</span><a href="../../base/src/GHC.Err.html#undefined"><span class="hs-identifier hs-var">undefined</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-prim/src/GHC.Types.html#Word"><span class="hs-identifier hs-type">Word</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-keyword">of</span><span class="hs-cpp">
#else
</span><span>  </span><span class="hs-keyword">case</span><span> </span><span class="hs-identifier">bitSize</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">undefined</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">Word</span><span class="hs-special">)</span><span> </span><span class="hs-keyword">of</span><span class="hs-cpp">
#endif
</span><span>    </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">32</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621679070719"><span class="hs-identifier hs-var">f32</span></a></span><span>
</span><span id="line-104"></span><span>    </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">64</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621679070718"><span class="hs-identifier hs-var">f64</span></a></span><span>
</span><span id="line-105"></span><span>    </span><span id="local-6989586621679070715"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679070715"><span class="hs-identifier hs-var">s</span></a></span></span><span>  </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">[Char] -&gt; a
forall a. HasCallStack =&gt; [Char] -&gt; a
</span><a href="../../base/src/GHC.Err.html#error"><span class="hs-identifier hs-var">error</span></a></span><span> </span><span class="annot"><span class="annottext">([Char] -&gt; a) -&gt; [Char] -&gt; a
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">[Char]
</span><span class="hs-string">&quot;caseWordSize_32_64: unsupported Word bit-size &quot;</span></span><span> </span><span class="annot"><span class="annottext">[Char] -&gt; [Char] -&gt; [Char]
forall a. [a] -&gt; [a] -&gt; [a]
</span><a href="../../base/src/GHC.Base.html#%2B%2B"><span class="hs-operator hs-var">++</span></a></span><span> </span><span class="annot"><span class="annottext">Int -&gt; [Char]
forall a. Show a =&gt; a -&gt; [Char]
</span><a href="../../base/src/GHC.Show.html#show"><span class="hs-identifier hs-var">show</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621679070715"><span class="hs-identifier hs-var">s</span></a></span><span>
</span><span id="line-106"></span><span>
</span><span id="line-107"></span><span>
</span><span id="line-108"></span></pre></body></html>